GitLab 中文社区版导入 Github 项目

MuYan2022-05-09web

导入 Github 项目

  1. 登录 GitHub,依次打开【Settings】——【Developer settings】——【OAuth Apps】,配置相关信息

  2. 配置完【OAuth Apps】后,记得生成 secret:【Generate a new client secret】

  3. 查询 gitlab.yml 文件,工具查询后的路径打开相应 gitlab.yml 文件,而后配置

# 查询 gitlab.yml 文件路径,而后根据日志打开 gitlab.yml 文件进行编辑
find / -name gitlab.yml

# gitlab.yml
  - { name: 'github', app_id: 'YOUR_APP_ID',
    app_secret: 'YOUR_APP_SECRET',
    args: { scope: 'user:email' } }
上次更新 2026/6/23 11:49:15
评论
  • 按正序
  • 按倒序
  • 按热度
Powered by Waline v2.15.8